<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8"%>
<html lang="zh-cn">
    <head>
        <title>图书漂流-登陆</title>
        <meta charset="utf-8">
        <link rel="stylesheet" type="text/css" href="/bookcrossing/css/bootstrap.min.css" />
        <link rel="stylesheet" type="text/css" href="/bookcrossing/css/main.css">
        <link rel="shortcut icon" type="image/png" href="/bookcrossing/img/favicon.png" />

    </head>
    <%if(session.getAttribute("uid")!=null || session.getAttribute("uname")!=null){
    	response.sendRedirect("/bookcrossing/");
    }else{
    	String historyGo = (String)request.getAttribute("historyGo");
    	String back = "";
    	if(historyGo !=null && !"".equals(historyGo)){
    		back = "back";
    	}
    %>
    <input type="hidden" value="<%=back %>" class="historyGo"/>
    <div class="modal fade" id="dialog-box">
    	<div class="modal-dialog">
    		<div class="modal-content">
    			<div class="modal-body">
    				<span class="tips-pic"></span> 
    				<span class="tips-content"></span>
    			</div>
    			<%--<div class="modal-footer">
    				<button type="button" class="btn btn-info btn-sm" data-dismiss="modal">好滴</button>
    			</div>--%>
    		</div>
    	</div>
    </div>
	<div class="container login-container">
		<div class="login-panel">
            <div class="login-pic">
                <div class="login-pic-in">
                	<a href="/bookcrossing/"><img src="/bookcrossing/img/logo.png" alt="home" /></a>
                </div>
            </div>
            <div class="login-content">
            	<p class="login-title">
            	<span class="big-text">登陆</span><span class="line">丨</span>没有账号？ <a href="/bookcrossing/reg">立即注册</a>
	            </p>
				<form action="login" method="post" id="login-form">
					<div class="input-group bc-input">
						<span class="input-group-addon">
							<span class="glyphicon glyphicon-user"></span>
						</span>
						<input type="text" class="form-control username" name="username" placeholder="用户名或邮箱" />
					</div>
					<div class="input-group bc-input">
						<span class="input-group-addon">
							<span class="glyphicon glyphicon-lock"></span>
						</span>
						<input type="password" class="form-control password" name="password" placeholder="密码" />
					</div>
					<div class="input-group">
						<div class="checkbox">
							<label><input type="checkbox" name="rememberme" value="rememberme" class="rememberme"/>记住我</label> 丨 
							<a href="#" class="forgetpsw">忘记密码？</a>
						</div>
					</div>
					<button type="submit" class="btn btn-primary btn-block login-btn" >登陆</button>
				</form>
            </div>
		</div>
	</div>
	<jsp:include page="foot.jsp"></jsp:include>
	<script type="text/javascript" src="/bookcrossing/js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="/bookcrossing/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="/bookcrossing/js/common.js"></script>
	<script type="text/javascript" src="/bookcrossing/js/md5.min.js"></script>
	<script type="text/javascript" src="/bookcrossing/js/login.js"></script>
	<%} %>
</html>